import axios from '@/libs/api.request'

export default {
  selectPage(body) {
    return axios.request({
      url: '/api/project/page',
      method: 'post',
      data: body
    })
  },
  insert(body) {
    return axios.request({
      url: '/api/project',
      method: 'post',
      data: body
    })
  },
  update(body) {
    return axios.request({
      url: '/api/project',
      method: 'put',
      data: body
    })
  },
  getById(id) {
    return axios.request({
      url: '/api/project/' + id,
      method: 'get'
    })
  },
  delete(body) {
    return axios.request({
      url: '/api/project',
      method: 'delete',
      data: body
    })
  },
  getDict() {
    return axios.request({
      url: '/api/project/getDict',
      method: 'get'
    })
  }
}
